package android;

public class StaticMethodsClass {
		static int count;
		static StaticMethodsClass [] s = new StaticMethodsClass [10];
		public static void tstPrintStatic1(){
			System.out.println("Static Method tstPrintStatic1() output. Instance "+count);
		}
		public static void tstPrintStatic(){
			System.out.println("Static Method tstPrintStatic() output. Instance "+count);
			tstPrintStatic1();
		}
		public static StaticMethodsClass instance(){
			if (count <10)s[count] = new StaticMethodsClass();
			return s[count++%10];
		}
		public static int getCount(){
			return count;
		}
		
		private StaticMethodsClass(){
			
		}
}
